home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19981211-19990422
/
000140_news@watsun.cc.columbia.edu _Tue Jan 19 14:45:55 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@watsun.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA05486
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 19 Jan 1999 14:45:55 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id OAA19310
for kermit.misc@watsun.cc.columbia.edu; Tue, 19 Jan 1999 14:34:14 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Subject: Re: not the same string with echo as with write file
Date: 19 Jan 1999 19:34:12 GMT
Organization: Columbia University
Message-ID: <782mnk$irc$1@newsmaster.cc.columbia.edu>
To: kermit.misc@mailrelay2.cc.columbia.edu
In article <36a5c258.1103743@news.calvacom.fr>,
Dominique Ottello <do11@calva.net> wrote:
: Le 18 Jan 1999 17:53:40 GMT,
: fdc@watsun.cc.columbia.edu (Frank da Cruz) �crivait :
:
: > Try this:
: >
: > def print_PC open append \m(FileLog),-
: > write file {\v(Time) \fcontents(\%1)\13\10},close write-file
:
: I tried and ..... there is the same problem.
:
: I also tried many, many commands and syntax : \Fcontents, \Fliteral, with
: or without parameter \%1, with the macro \m(Affiche) in place of parameter
: \%1, with the complete string in place of parameter \%, with commands open,
: write file and close not inside a macro.... and, all times, the command
: "write file" evaluates the string and always give me :
: C:\A320�9M55\ECDD3022�90118.005
: in place of
: C:\A320\1459M55\ECDD3022\19990118.005
:
: I bypass the problem by use of external DOS command echo and another macro
: only for parameter that can be evaluated wrong
:
: def print_PC_DOS run echo \v(Time) \%1 >> \m(Filelog)
:
: I'll use this new macro only to correct the line where the problem is
: because the use of DOS command echo generate CR/LF on the screen.
:
The proposed solution works in Kermit 95 and C-Kermit.
I also tried it in MS-DOS Kermit 3.16 Alpha and it worked there too.
Then I tried in 3.15. Without enclosing \%1 in \fcontents():
[C:\K95\TMP] MS-Kermit>tak x.ksc
copy C:\KERMIT\FICHIERS\AKA10AAJ.T1 C:\A320\1459M55\ECDD3022\19990119.005
15:21:53 copy C:\KERMIT\FICHIERS\AKA10AAJ.T1 C:\A320�9M55\ECDD302290119.005
After enclosing \%1 in \fcontents():
[C:\K95\TMP] MS-Kermit>tak x.ksc
copy C:\KERMIT\FICHIERS\AKA10AAJ.T1 C:\A320\1459M55\ECDD3022\19990119.005
15:19:49 copy C:\KERMIT\FICHIERS\AKA10AAJ.T1 (word wrap)
C:\A320\1459M55\ECDD3022\19990119.005
This is using your macro definition, but replacing WRITE FILE by ECHO.
- Frank